FILE_DA_CONSEGNARE=./wakeup

.PHONY: test clean consegna

test: 
	make clean
	cp agenda.txt agenda
	chmod 644 agenda
	./testwakeup 
	diff ./out ./out.check
	@echo -e "\a\n **** Test superato! ****\n"

SUBJECT1="lcs08: consegna secondo frammento: wakeup"
#effettua il test e la consegna
consegna:
	make test
	./gruppo-check.pl < ./gruppo.txt
	tar -cvf $(USER)-f2wakeup.tar ./gruppo.txt $(FILE_DA_CONSEGNARE) 
	mpack -s $(SUBJECT1) ./$(USER)-f2wakeup.tar  susanna@di.unipi.it
	@echo -e "\a\n*** secondo FRAMMENTO CONSEGNATO! (wakeup) ***\n"

clean:
	-rm -f *~ ./out 
